package ShapeDemo;

    class Rectangle extends Shape{
        double dLength;
        double dWidth;
        public void getArea(){
            System.out.println("矩形的面积:"+dLength*dWidth);
        }
        public Rectangle(double l,double w){
            this.dLength=l;
            this.dWidth=w;
        }
    }



